package com.klangner.animation.sprites
{
	import com.klangner.animation.path.api.IPath;
	
	import flash.display.Bitmap;

  public class ImageSprite extends MovableSprite {

    [Embed(source="tortoise.jpg")]
    private var TortoiseImage:Class;
    private var image:Bitmap;
    

    public function ImageSprite(path:IPath) {
      super(path);
      image = new TortoiseImage();
        
      paint();
    }
    
    public override function move():void{
      
      super.move();
      
      if(contains(image))
        removeChild(image);
      
      image.x = x;
      image.y = y;
      addChild(image);
    }
  
    private function paint():void {
      
    }
  }

}